package com.ls.fw.data.support.sep;


import java.io.IOException;

/**
 * Publisher of side-effect events which are distributed to and handled by {@link EventListener}s.
 */
public interface EventPublisher {

    /**
     * Publish an event to be processed by the side-effect processor (SEP) system.
     * 
     * @param row The row key for the record to which the event is related
     * @param payload The content of the event message
     */
    void publishEvent(byte[] row, byte[] payload) throws IOException;
}
